API Documentation
FontManager.h
1 // FontManager.h
3 //
5 
6 namespace nkWinUi
7 {
13  class FontManager final : public nkCommon::MaybeSingletonClass<FontManager>
14  {
15  public :
16 
17  // Getters
21  Font* getDefaultFont () const ;
22 
23  // Memory management
37  Font* get (const nkMemory::StringView& name) const ;
46  Font* getByIndex (unsigned int index) const ;
53  void rename (const nkMemory::StringView& oldName, const nkMemory::StringView& newName) ;
59  void erase (const nkMemory::StringView& name) ;
60  } ;
61 }
nkWinUi::FontManager::getByIndex
Font * getByIndex(unsigned int index) const
nkWinUi::FontManager::erase
void erase(const nkMemory::StringView &name)
nkWinUi::FontManager::getDefaultFont
Font * getDefaultFont() const
nkWinUi::Font
Offers an interface to work with fonts [WIP].
Definition: Font.h:12
nkWinUi::FontManager
Manages the fonts in the component [WIP].
Definition: FontManager.h:14
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkWinUi::FontManager::createOrRetrieve
Font * createOrRetrieve(const nkMemory::StringView &name)
nkWinUi::FontManager::get
Font * get(const nkMemory::StringView &name) const
nkWinUi::FontManager::rename
void rename(const nkMemory::StringView &oldName, const nkMemory::StringView &newName)
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Button.h:7